﻿using Dora.Services.AdminUser.Dto.QueryDto;
using Dora.Services.AdminUser.Dto.SaveDto;
using Dora.Services.AdminUser.Dto.ViewDto;
using Dora.Services.AdminUser.Entities;
using Dora.Tools.Utility.Const;
using Dora.Tools.Utility.Models;
using Surging.Core.Common;
using Surging.Core.CPlatform.Ioc;
using Surging.Core.CPlatform.Runtime.Server.Implementation.ServiceDiscovery.Attributes;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;


namespace Dora.Services.AdminUser.IApplication
{
    /// <summary>
    /// 环信用户联系表服务接口
    /// </summary>
    [ServiceBundle("api/" + DoraModuleName.AdminUser + "/{Service}")]
    public interface IHxUserContactService : IServiceKey
    {

        /// <summary>
        /// 创建
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        [Service(Date = "2019-06-18", Director = "TTTan", Name = "创建")]
        Task<ResultDto<Guid>> Create(HxUserContactEntity entity);

        /// <summary>
        /// 根据Id获取一个实体对象
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        [Service(Date = "2019-06-18", Director = "TTTan", Name = "根据Id获取一个实体对象")]
        Task<HxUserContactEntity> GetById(Guid id);

        /// <summary>
        /// 分页获取数据
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        [Service(Date = "2019-06-18", Director = "TTTan", Name = "分页获取数据")]
        Task<PageDataList<HxUserContactEntity>> GetPageList(HxUserContactQueryDto input);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        [Service(Date = "2019-06-18", Director = "TTTan", Name = "修改")]
        Task<bool> Update(HxUserContactEntity entity);

        /// <summary>
        /// 根据IdList获取列表
        /// </summary>
        /// <param name="idList"></param>
        /// <returns></returns>
        [Service(Date = "2019-06-18", Director = "TTTan", Name = "根据IdList获取列表")]
        Task<List<HxUserContactEntity>> GetList(List<Guid> idList);

        /// <summary>
        /// 获取所有
        /// </summary>
        /// <returns></returns>
        [Service(Date = "2019-06-18", Director = "TTTan", Name = "获取所有")]
        Task<List<HxUserContactEntity>> GetAll();

        /// <summary>
        /// 根据发送人或接收人IdList获取列表
        /// </summary>
        /// <param name="userIdList"></param>
        /// <returns></returns>
        Task<List<HxUserContactEntity>> GetListByUserIdList(List<Guid> userIdList);
    }
}
